package com.weblog.weblogapi.controller;

import com.weblog.weblogapi.service.ClassifyService;
import com.weblog.weblogapi.vo.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("sort")
public class ClassifyController {
    @Autowired
    private ClassifyService classifyService;
    //查询所有分类
    @GetMapping
    public Result getAllSort(){return classifyService.getAllSort();}
}
